<style>
#adminOpstine{
	width:440px;
}
#editContainer{
	width:240px;
}
#editContainer label,
#adminOpstine label{
	display:block;
	float:left;
	padding-top:8px;
}
#editContainer label{
	width:60px;
	text-align:right;
	clear:both;
}
#editContainer input.save{
	background-image:url(gui/icons/save.gif);
	background-position: 3px center;
	background-repeat:no-repeat;
	padding-left:16px;
	float:right;
}
#adminOpstine table{
	width:100%;
	clear:both;
	margin-top:5px;
}
#adminOpstine table tr.head{
	cursor:default;
}
#adminOpstine table tr:hover{
	cursor:pointer;
	background:{{$highlight}};
	color:{{$highlighttext}};
}
</style>
<form class="area" id="adminOpstine" action="javascript:void(0)" onsubmit="submitForm(this,'geos.php','POST','setContent',1)">
	<input type="hidden" name="a" value="opstine" />
	<input type="hidden" name="page" value="{{$current_page}}" />
	
	<div style="float:right; font-size:10px; color:#aaa;">{{$info}}</div>
	<h1>Opštine</h1>
	<fieldset>
		<legend>Filter:</legend>
		<label for="filter_name">Naziv:</label>
		<input type="text" name="filter_name" id="filter_name" value="{{$filter_name}}" />
		
		<label for="filter_region">Region:</label>
		<select name="filter_region" id="filter_region">
			<option value="-1">---</option>
			{{%loop start rid}}
			<option value="{{$rid}}" {{$selected_reg}}>{{$rname}}</option>
			{{%loop end}}
		</select>
		
		<input type="submit" name="submit" id="submit" value="filter" />
	</fieldset>
	{{$comment_start}}
	<ul class="letter_filter">
		<li>Strana:</li>
		{{%loop start page}}
		<li><a id="{{$curr_page}}" href="javascript:void(0)" onclick="filterAdminOpstine(this)">{{$page}}</a></li>
		{{%loop end}}
	</ul>
	
	<table>
		<tr class="head">
			<td width="8%">šifra</td>
			<td width="46%">naziv</td>
			<td>region</td>
		</tr>
		{{%loop start opstina_id}}
		<tr title="Izmeni..." onclick="editOpstina('{{$opstina_id}}','{{$opstina_name}}','{{$region_id}}','{{$region}}')">
			<td>{{$opstina_id}}</td>
			<td>{{$opstina_name}}</td>
			<td>{{$region}}</td>
		</tr>
		{{%loop end}}
	</table>
	{{$comment_end}}
</form>